package cn.edu.sgu.www.mhxysy.entity.gang;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 帮派成员
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("gang_member")
public class GangMember implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 帮派成员
	 */
	@ApiModelProperty(value = "帮派成员")
	private String name;

	/**
	 * 角色造型ID
	 */
	@ApiModelProperty(value = "角色造型ID")
	private Integer roleId;

	/**
	 * 门派ID
	 */
	@ApiModelProperty(value = "门派ID")
	private Integer schoolId;

	/**
	 * 等级
	 */
	@ApiModelProperty(value = "等级")
	private Integer grade;

	/**
	 * 帮派职务ID
	 */
	@ApiModelProperty(value = "帮派职务ID")
	private Integer jobId;

	/**
	 * 帮派ID
	 */
	@ApiModelProperty(value = "帮派ID")
	private String gangId;

	/**
	 * 本周帮贡
	 */
	@ApiModelProperty(value = "本周帮贡")
	private Integer bzbg;

	/**
	 * 现有帮贡
	 */
	@ApiModelProperty(value = "现有帮贡")
	private Integer xybg;

	/**
	 * 历史帮贡
	 */
	@ApiModelProperty(value = "历史帮贡")
	private Integer lsbg;

	/**
	 * 入帮时间
	 */
	@ApiModelProperty(value = "入帮时间")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private LocalDate enterTime;

	/**
	 * 离线时间
	 */
	@ApiModelProperty(value = "离线时间")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private LocalDate lastOnline;
}